export interface TrademarkItem {
  id: number;
  tmName: string;
  logoUrl: string;
}

export type TrademarkList = TrademarkItem[];

/*
  1. 测试接口，得到接口返回的数据（只要data）
    {
      "records": [
        {
          "id": 1,
          "tmName": "小米",
          "logoUrl": "http://47.93.148.192:8080/group1/M00/03/D9/rBHu8mHmKC6AQ-j2AAAb72A3EO0942.jpg"
        }
      ],
      "total": 35,
    }
  2. 从外到内定义类型
    对象类型通过interface定义
    数组类型通过type定义别名来复用
*/

export interface GetTrademarkListApiResponse {
  records: TrademarkList;
  total: number;
}
